<?php

    // TITLE:
    // FILE:
    // AUTHOR:
    // DATE:

?>
<h3>Phone</h3>
<input type="hidden" name="id" value="<?php echo $phone->getId(); ?>">
<input type="number" maxlength="10">
<select name="type">
    <?php
        foreach ($types as $type) {
            $id = $type->getId();
            $title = $type->getTitle();
            $selected = ($id == $typeId) ? ' selected' : null;
            echo '<option value="' . $id . '">' . $title . '</options>' . "\n";
        }
    ?>
</select>
